<%@ page import="com.eso.haBank.domain.Department" %>


<div class="fieldcontain ${hasErrors(bean: departmentInstance, field: 'jgm', 'error')} required">
	<label for="jgm">
		<g:message code="department.jgm.label" default="Jgm" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="jgm" maxlength="8" required="" value="${departmentInstance?.jgm}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: departmentInstance, field: 'jgjc', 'error')} required">
	<label for="jgjc">
		<g:message code="department.jgjc.label" default="Jgjc" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="jgjc" maxlength="20" required="" value="${departmentInstance?.jgjc}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: departmentInstance, field: 'jgbz', 'error')} required">
	<label for="jgbz">
		<g:message code="department.jgbz.label" default="Jgbz" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="jgbz" from="${departmentInstance.constraints.jgbz.inList}" required="" value="${departmentInstance?.jgbz}" valueMessagePrefix="department.jgbz"/>
</div>

<div class="fieldcontain ${hasErrors(bean: departmentInstance, field: 'jglx', 'error')} required">
	<label for="jglx">
		<g:message code="department.jglx.label" default="Jglx" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="jglx" maxlength="1" required="" value="${departmentInstance?.jglx}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: departmentInstance, field: 'comment', 'error')} ">
	<label for="comment">
		<g:message code="department.comment.label" default="Comment" />
		
	</label>
	<g:textArea name="comment" rows="5" cols="100">${departmentInstance?.comment}</g:textArea>
</div>

<div class="fieldcontain ${hasErrors(bean: departmentInstance, field: 'parentDept', 'error')} required">
	<label for="parentDept">
		<g:message code="department.parentDept.label" default="Parent Dept" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="parentDept" name="parentDept.id" from="${com.eso.haBank.domain.Department.list()}" optionKey="id" required="" value="${departmentInstance?.parentDept?.id}" class="many-to-one"/>
</div>

%{--<div class="fieldcontain ${hasErrors(bean: departmentInstance, field: 'users', 'error')} ">--}%
	%{--<label for="users">--}%
		%{--<g:message code="department.users.label" default="Users" />--}%
		%{----}%
	%{--</label>--}%
	%{--<g:select name="users" from="${com.eso.haBank.domain.Employee.list()}" multiple="multiple" optionKey="id" size="5" value="${departmentInstance?.users*.id}" class="many-to-many"/>--}%
%{--</div>--}%

